package com.ler.nacosdbconfig.controller;


import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.ler.nacosdbconfig.domain.UserAccount;
import com.ler.nacosdbconfig.service.UserAccountService;
import io.swagger.annotations.ApiOperation;
import java.util.List;
import javax.annotation.Resource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 前端控制器
 * </p>
 *
 * @author lww
 * @since 2019-08-25
 */
@RestController
public class UserAccountController {

	@Resource
	private UserAccountService userAccountService;

	@GetMapping("/user")
	public List<UserAccount> getUser() {
		List<UserAccount> list = userAccountService.list(new QueryWrapper<UserAccount>());
		return list;
	}
}
